package com.park.dao;

import com.park.bean.Tickets;
import com.park.bean.TicketsRec;
import com.park.bean.TicketsType;
import com.park.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface ITicketsRecDao {
    List<TicketsRec> getTicketsRec(@Param("ticketsRec")TicketsRec ticketsRec, @Param("page")Page page);

    int getCount(@Param("ticketsRec") TicketsRec ticketsRec);
    int checkExist(TicketsRec ticketsRec);

    List<Tickets> getTicketsFromRec();
    List<TicketsType> getTicketsTypeFromRec();

    BigDecimal getPrice(int id);
    BigDecimal getRatio(int id);

    int postTicketsRec(TicketsRec ticketsRec);

    int delTicketsRec(int id);

    int editTicketsRec(TicketsRec ticketsRecords);
}
